<ul class="nav nav-pills">
  <li {{bindAttr title="localTitle" class="localSelected:active"}}>
    <a href="#" {{action selectLocal}}>{{i18n upload_selector.from_my_computer}}</a>
  </li>
  <li {{bindAttr title="remoteTitle" class="remoteSelected:active"}}>
    <a href="#" {{action selectRemote}}>{{i18n upload_selector.from_the_web}}</a>
  </li>
</ul>

{{#if localSelected}}
  <div class='modal-body'>
    <form>
      <input type="file" name="file" id="filename-input" value="browse"><br>
      <span class='description'>{{localTip}}</span> <br>
    </form>
  </div>
  <div class='modal-footer'>
    <button class='btn btn-large btn-primary' {{action upload target="view"}}>
      <span class='add-upload'><i class='icon-file-alt'></i><i class='icon-plus'></i></span>
      {{uploadTitle}}
    </button>
  </div>
{{else}}
  <div class='modal-body'>
    <form>
      <input type="text" name="text" id="fileurl-input" autofocus><br>
      <span class='description'>{{remoteTip}}</span> <br>
    </form>
  </div>
  <div class='modal-footer'>
    <button class='btn btn-large btn-primary' {{action add target="view"}}>
      <span class='add-upload'><i class='icon-file-alt'></i><i class='icon-plus'></i></span>
      {{addTitle}}
    </button>
  </div>
{{/if}}
